package fourzerofour.guoshixu.day01;

import java.util.Scanner;

public class Question3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入连乘的最大数：");
        int num = scanner.nextInt();
        String inputStr = "1";
        int product = 1;
        for(int i=0;i<num-1;i++){
            product *= i+2;
            inputStr += "*" + (i+2);
        }
        inputStr += "的结果为" + product;
        System.out.println(inputStr);

    }
}
